package com.daocao.ds.api.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xsooy-pc on 18-11-21.
 */

public class RuleSaveBean implements Parcelable {

    /**
     * level : 1
     * amount : 1
     * limit_days : 7
     * income_range : 1
     * socialsecurity : 2
     * housefund : 1
     * house : 2
     * car : 1
     * day_max_amount : 2000
     * pay_passwd : ddd
     */

    public String level;
    public String amount;
    public String limit_days;
    public String income_range;
    public String socialsecurity;
    public String housefund;
    public String house;
    public String car;
    public String day_max_amount;
    public String pay_passwd;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.level);
        dest.writeString(this.amount);
        dest.writeString(this.limit_days);
        dest.writeString(this.income_range);
        dest.writeString(this.socialsecurity);
        dest.writeString(this.housefund);
        dest.writeString(this.house);
        dest.writeString(this.car);
        dest.writeString(this.day_max_amount);
        dest.writeString(this.pay_passwd);
    }

    public RuleSaveBean() {
    }

    protected RuleSaveBean(Parcel in) {
        this.level = in.readString();
        this.amount = in.readString();
        this.limit_days = in.readString();
        this.income_range = in.readString();
        this.socialsecurity = in.readString();
        this.housefund = in.readString();
        this.house = in.readString();
        this.car = in.readString();
        this.day_max_amount = in.readString();
        this.pay_passwd = in.readString();
    }

    public static final Parcelable.Creator<RuleSaveBean> CREATOR = new Parcelable.Creator<RuleSaveBean>() {
        @Override
        public RuleSaveBean createFromParcel(Parcel source) {
            return new RuleSaveBean(source);
        }

        @Override
        public RuleSaveBean[] newArray(int size) {
            return new RuleSaveBean[size];
        }
    };
}
